package com.bibrApp.difu.actvity.record_mvp;

import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.bibrApp.difu.R;
import com.bibrApp.difu.Response.PaySettingResPonseBody;
import com.bibrApp.difu.utils.UIUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

/**
 * @CreateDate 2020/3/9
 * @Author dj
 */
public class RecordAdapter extends BaseQuickAdapter<RecordBean, BaseViewHolder> {

    private boolean isHideAll = true;

    public RecordAdapter() {
        super(R.layout.item_record);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, RecordBean item) {

        TextView tvName = helper.getView(R.id.tv_name);
        if (item.coinCode.equals("BTC")) {
            UIUtils.setDrawableLeft(tvName, R.mipmap.img_btc_28);
        } else if (item.coinCode.equals("ETH")) {
            UIUtils.setDrawableLeft(tvName, R.mipmap.img_eth_28);
        } else {
            UIUtils.setDrawableLeft(tvName, R.mipmap.img_usdt_28);
        }
        tvName.setText(item.getCoinCode());

    }


}